import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { BrowserRouter as Router } from "react-router-dom"
import { Provider } from "react-redux";
import store from "./redux/store"

import { persistor } from './redux/store'
import { PersistGate } from 'redux-persist/lib/integration/react';


ReactDOM.render(
  <Router>
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <App></App>
      </PersistGate>
    </Provider>
  </Router>,
  document.getElementById('root')
);


